using FluentNHibernate.Mapping;
using Sample.Domain;

namespace Sample.Persistence.Mappings
{
    public class ReviewerForReviewMap: ClassMap<ReviewerForReview>
    {
        public ReviewerForReviewMap()
        {
            UseCompositeId()
                .WithKeyReference(x => x.Reviewer, "ReviewerId")
                .WithKeyReference(x => x.Review, "PeerReviewId");
            Map(x => x.Feedback).WithLengthOf(1024);
        }
    }
}